package com.kaili.db.service.impl;

import com.kaili.pojo.entity.HsEwbsStowageSub;
import com.kaili.db.mapper.HsEwbsStowageSubMapper;
import com.kaili.db.service.IHsEwbsStowageSubService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xujinghai
 * @since 2018-06-06
 */
@Service
public class HsEwbsStowageSubServiceImpl extends ServiceImpl<HsEwbsStowageSubMapper, HsEwbsStowageSub> implements IHsEwbsStowageSubService {

    @Autowired
    private HsEwbsStowageSubMapper stowageSubMapper;

    public boolean insertBatch(List<HsEwbsStowageSub> list){
        baseMapper.insertBatch(list);
        return true;
    }

    @Override
    public HsEwbsStowageSub selectStowageSub(String subEwb) {
        return stowageSubMapper.selectStowageSub(subEwb);
    }
}
